package com.xnyzc.lhy.order.service.vehicle.collect;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xnyzc.lhy.order.entity.result.vehicle.VehicleCollectionRes;
import com.xnyzc.lhy.order.entity.vehicle.collect.OaCVehicleCollect;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * 用户车辆收藏 服务类
 * </p>
 *
 * @author bin
 * @since 2019-07-18
 */
public interface IOaCVehicleCollectService extends IService<OaCVehicleCollect> {

    /**
     * 查询全部用户车辆收藏
     * @param userId 用户id
     * @param current 当前页
     * @return
     */
    IPage<VehicleCollectionRes> selectVehicleCollectPage(@Param("userId") Long userId, long current, String vehNo);

    /**
     * 收藏车辆
     * @param userId 用户id
     * @param vehicleId 车辆id
     * @return
     */
    Map<String, Object> collectVehicle(Long userId, Long vehicleId);
}
